﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="PromoAnalysisPro.aspx.cs" Inherits="PromoAnalysisPro" %>

<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <strong>Summary</strong> <br />
    <asp:BulletedList ID="lstSummary" runat="server">
    </asp:BulletedList>
    <br />
    <br />
    <asp:Button ID="btnGetGraph" runat="server" onclick="btnGetGraph_Click" 
        Text="Refresh" />
&nbsp;
    <asp:RadioButtonList ID="rdoSpecificMonth" runat="server" 
        RepeatDirection="Horizontal" RepeatLayout="Flow">
    </asp:RadioButtonList>
    <br />
    <asp:UpdatePanel ID="updOverallChart" runat="server" 
    UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Chart ID="Chart1" runat="server" Height="441px" ImageType="Jpeg" 
                Width="904px" Palette="SemiTransparent">
                <series>
                    <asp:Series ChartType="Bubble" 
                        CustomProperties="BubbleMinSize=0, EmptyPointValue=Zero, LabelStyle=Center" 
                        Font="Microsoft Sans Serif, 8pt, style=Bold" IsValueShownAsLabel="True" 
                        LabelForeColor="DimGray" LabelMapAreaAttributes="AllSum" Legend="AllServe" 
                        LegendText="All Provider" MarkerBorderColor="Silver" MarkerColor="ControlLight" 
                        MarkerSize="30" MarkerStyle="Circle" Name="serTotal" XValueMember="Id" 
                        YValueMembers="AllCount,AllSum" YValuesPerPoint="2">
                    </asp:Series>
                    <asp:Series ChartType="Bubble" Color="LimeGreen" 
                        CustomProperties="BubbleMinSize=0, EmptyPointValue=Zero" 
                        LabelMapAreaAttributes="AisSum" Legend="AllServe" LegendText="AIS" 
                        MarkerBorderWidth="0" MarkerColor="LimeGreen"  MarkerSize="30"
                        MarkerImageTransparentColor="White" MarkerStyle="Circle" Name="serAis" 
                        XValueMember="Id" YValueMembers="AisCount,AisSum" YValuesPerPoint="2">
                    </asp:Series>
                    <asp:Series ChartType="Bubble" Color="DeepSkyBlue" 
                        CustomProperties="BubbleMinSize=0, EmptyPointValue=Zero" 
                        LabelMapAreaAttributes="DtacSum" Legend="AllServe" LegendText="DTAC" 
                        MarkerBorderWidth="0" MarkerColor="DeepSkyBlue" 
                        MarkerImageTransparentColor="White" MarkerSize="30" MarkerStyle="Circle" 
                        Name="serDtac" XValueMember="Id" YValueMembers="DtacCount,DtacSum" 
                        YValuesPerPoint="2">
                    </asp:Series>
                    <asp:Series ChartType="Bubble" Color="DarkOrange" 
                        CustomProperties="BubbleMinSize=0, EmptyPointValue=Zero" 
                        LabelMapAreaAttributes="DtacSum" Legend="AllServe" LegendText="True Move" 
                        MarkerBorderWidth="0" MarkerColor="OrangeRed" MarkerSize="30" 
                        MarkerStyle="Circle" Name="serTmove" XValueMember="Id" 
                        YValueMembers="TmoveCount,TmoveSum" YValuesPerPoint="4">
                    </asp:Series>
                </series>
                <chartareas>
                    <asp:ChartArea Name="ChartArea1">
                        <AxisY Minimum="0" Title="Freq">
                            <MajorGrid Interval="Auto" LineColor="Gray" />
                            <MinorGrid LineColor="Gainsboro" LineDashStyle="Dot" />
                        </AxisY>
                        <AxisX ArrowStyle="Triangle" InterlacedColor="224, 224, 224" Interval="1" 
                            LineColor="DimGray" LineDashStyle="Dot" Maximum="24" Minimum="0" Title="Hour">
                            <MajorGrid Interval="3" LineColor="Silver" />
                            <MinorGrid Enabled="True" Interval="1" LineColor="Gainsboro" 
                                LineDashStyle="Dot" />
                            <MajorTickMark LineColor="Gray" />
                            <ScaleBreakStyle Enabled="True" />
                        </AxisX>
                    </asp:ChartArea>
                </chartareas>
                <Legends>
                    <asp:Legend BorderDashStyle="NotSet" Name="AllServe" Title="Provider" 
                        TitleSeparatorColor="Gray">
                    </asp:Legend>
                </Legends>
                <Titles>
                    <asp:Title Name="Title1" Text="Chart presenting calling transactions">
                    </asp:Title>
                </Titles>
            </asp:Chart>
            <br />
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnGetGraph" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
    <br />


    <table cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <asp:Button ID="btnRefresh" runat="server" onclick="btnRefresh_Click" 
                    Text="Refresh" />
            </td>
            <td> Top :
            </td>
            <td>
                    <asp:RadioButtonList ID="rdoTop" runat="server" 
                        RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem Selected="True">5</asp:ListItem>
                    </asp:RadioButtonList>
                    &nbsp;&nbsp; using &nbsp;&nbsp;
                <asp:CheckBoxList ID="chkProvider" runat="server" RepeatDirection="Horizontal" 
                    RepeatLayout="Flow">
                    <asp:ListItem Selected="True" Value="ais">AIS</asp:ListItem>
                    <asp:ListItem Selected="True" Value="dtac">DTAC</asp:ListItem>
                    <asp:ListItem Selected="True" Value="tmove">True Move</asp:ListItem>
                </asp:CheckBoxList>
                &nbsp;&nbsp;&nbsp; for &nbsp;&nbsp;
                    <asp:RadioButtonList ID="rdoBehavior" runat="server" 
                        RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Selected="True" Value="Both most">Both most</asp:ListItem>
                        <asp:ListItem>Frequency and </asp:ListItem>
                        <asp:ListItem Value="Long Duration Calling">Long Duration</asp:ListItem>
                    </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>From Time :
            </td>
            <td>
            <asp:RadioButtonList ID="rdoFromHour" runat="server" 
                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Selected="True">0</asp:ListItem>
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>21</asp:ListItem>
                    <asp:ListItem>22</asp:ListItem>
                    <asp:ListItem>23</asp:ListItem>
                    <asp:ListItem>24</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>

        <tr>
            <td>
            </td>
            <td>To Time :
            </td>
            <td>
                <asp:RadioButtonList ID="rdoToHour" runat="server" 
                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem>0</asp:ListItem>
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>21</asp:ListItem>
                    <asp:ListItem>22</asp:ListItem>
                    <asp:ListItem>23</asp:ListItem>
                    <asp:ListItem Selected="True">24</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>

    </table>
    
    
    
    
    
<br />
<asp:UpdatePanel ID="updTopFriends" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:Chart ID="Chart2" runat="server" Height="441px" ImageType="Jpeg" 
            Width="904px" Palette="SemiTransparent">
            <series>
                <asp:Series ChartType="Bubble" 
                    CustomProperties="BubbleMinSize=0, EmptyPointValue=Zero" 
                    LabelMapAreaAttributes="tc1" Legend="AllServe" LegendText="Top 1" 
                    MarkerBorderWidth="0" MarkerSize="30" MarkerStyle="Circle" Name="ser1" 
                    XValueMember="Id" YValueMembers="tc1,ts1" YValuesPerPoint="4" 
                    BorderColor="Red">
                </asp:Series>
                <asp:Series ChartType="Bubble" 
                    CustomProperties="BubbleMinSize=0, EmptyPointValue=Zero" 
                    LabelMapAreaAttributes="tc2" Legend="AllServe" LegendText="Top 2" 
                    MarkerBorderWidth="0" MarkerSize="25" MarkerStyle="Circle" Name="ser2" 
                    XValueMember="Id" YValueMembers="tc2,ts2" YValuesPerPoint="4" 
                    BorderColor="0, 192, 0">
                </asp:Series>
                <asp:Series ChartType="Bubble" 
                    CustomProperties="BubbleMinSize=0, EmptyPointValue=Zero" 
                    LabelMapAreaAttributes="tc3" Legend="AllServe" LegendText="Top 3" 
                    MarkerBorderWidth="0" MarkerSize="20" MarkerStyle="Circle" Name="ser3" 
                    XValueMember="Id" YValueMembers="tc3,ts3" YValuesPerPoint="4">
                </asp:Series>
                <asp:Series ChartType="Bubble" 
                    CustomProperties="BubbleMinSize=0, EmptyPointValue=Zero" 
                    LabelMapAreaAttributes="tc4" Legend="AllServe" LegendText="Top 4" 
                    MarkerBorderWidth="0" MarkerSize="15" MarkerStyle="Circle" Name="ser4" 
                    XValueMember="Id" YValueMembers="tc4,ts4" YValuesPerPoint="4" 
                    BorderColor="Olive">
                </asp:Series>
                <asp:Series ChartType="Bubble" 
                    CustomProperties="BubbleMinSize=0, EmptyPointValue=Zero" 
                    LabelMapAreaAttributes="tc5" Legend="AllServe" LegendText="Top 5" 
                    MarkerBorderWidth="0" MarkerSize="10" MarkerStyle="Circle" Name="ser5" 
                    XValueMember="Id" YValueMembers="tc5,ts5" YValuesPerPoint="4" 
                    BorderColor="Teal">
                </asp:Series>
            </series>
            <chartareas>
                <asp:ChartArea Name="ChartArea1">
                    <AxisY Minimum="0" Title="Freq">
                        <MajorGrid Interval="Auto" LineColor="Gray" />
                        <MinorGrid LineColor="Gainsboro" LineDashStyle="Dot" />
                    </AxisY>
                    <AxisX ArrowStyle="Triangle" InterlacedColor="224, 224, 224" Interval="1" 
                        LineColor="DimGray" LineDashStyle="Dot" Maximum="24" Minimum="0" Title="Hour">
                        <MajorGrid Interval="3" LineColor="Silver" />
                        <MinorGrid Enabled="True" Interval="1" LineColor="Gainsboro" 
                            LineDashStyle="Dot" />
                        <MajorTickMark LineColor="Gray" />
                        <ScaleBreakStyle Enabled="True" />
                    </AxisX>
                </asp:ChartArea>
            </chartareas>
            <Legends>
                <asp:Legend BorderDashStyle="NotSet" Name="AllServe" Title="Provider" 
                    TitleSeparatorColor="Gray">
                </asp:Legend>
            </Legends>
            <Titles>
                <asp:Title Name="Title1" Text="Chart presenting top 5 called numbers">
                </asp:Title>
            </Titles>
        </asp:Chart>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnGetGraph" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="btnRefresh" EventName="Click" />
    </Triggers>
</asp:UpdatePanel>
    <br />
</asp:Content>

